<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div th:fragment="test">
    <div class="my-test">
        <h1>测试</h1>
    </div>
</div>
</body>
</html>